package com.thirtyfour;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        int[] an = {5, 7, 7, 8, 8, 10};

        int position1 = new ThirtyFour().findFirstPosition(an, 7);
        int position2 = new ThirtyFour().findLastPosition(an, 7);

        ArrayList<Integer> list = new ArrayList<>();
        list.add(position1);
        list.add(position2);
        System.out.println(list);
    }
}
